package com.baizhi.zjs.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baizhi.zjs.entity.BookEntity;
import com.baizhi.zjs.entity.CategoryEntity;

public interface BookService {
	//添加book
public void addBook(BookEntity book);
//查询所有图书
public List<BookEntity> showAllBook();
//删除图书
public  void deleteBook(String id);
//查询一条数据
public BookEntity shoeOneBook(String id);
//修改一条数据
public void updateOneBook(BookEntity book);
//模糊查询
public List<BookEntity> likeBook(BookEntity book);
//前台热销图书
public List<BookEntity> fShowHotBook();
//前台最新上架
public List<BookEntity> fShowNewBook();
//前台新书热卖
public List<BookEntity> fShNewHotBook();
//前台编辑推荐
public List<BookEntity> fShowCompile();
//前台测试查询一级类别下的所有图书
public List<BookEntity> queryOneCeateBook(String id,String id1,Integer pageNum,Integer pageSize);
//前台：分页查询：根据类别查询图书数量
	public Integer queryByCount(String id, String id1);
	//前台：根据类别查询总条数
	public	Integer queryByPage(String fid,String cid,Integer pageSize);
}

